import Vue from 'vue'
import VueRouter from 'vue-router'
import Test1 from '../views/test1.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Test1',
    component: Test1
  },
  {
    path: '/test2',
    name: 'Test2',
    component: () => import(/* webpackChunkName: "about" */ '../views/test2.vue')
  },
  {
    path: '/test3',
    name: 'Test3',
    component: () => import(/* webpackChunkName: "about" */ '../views/test3.vue')
  },
  {
    path: '/test4',
    name: 'Test4',
    component: () => import(/* webpackChunkName: "about" */ '../views/test4.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
